package kuang.juc.function;


import java.util.function.Supplier;

/**
 * 生产者接口，没有输入有返回值
 */
public class SupplierDemo {
    public static void main(String[] args) {
        //Supplier<String> supplier = new Supplier<>() {
        //    @Override
        //    public String get() {
        //        return "null";
        //    }
        //};
        Supplier<String> supplier =()->{return "null";};


        System.out.println(supplier.get());
    }
}
